﻿<%@ Page Language="C#" MasterPageFile="~/Admin/admin.master" AutoEventWireup="true"
    CodeFile="StockEdit.aspx.cs" Inherits="StockEdit" Title="Stock Edit" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server">
    Stock - Add/Edit</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <data:MultiFormView ID="FormView1" DataKeyNames="StockId" runat="server" DataSourceID="StockDataSource">
        <EditItemTemplatePaths>
            <data:TemplatePath Path="~/Admin/UserControls/StockFields.ascx" />
        </EditItemTemplatePaths>
        <InsertItemTemplatePaths>
            <data:TemplatePath Path="~/Admin/UserControls/StockFields.ascx" />
        </InsertItemTemplatePaths>
        <EmptyDataTemplate>
            <b>Stock not found!</b>
        </EmptyDataTemplate>
    </data:MultiFormView>
    <data:StockDataSource ID="StockDataSource" runat="server" SelectMethod="GetByStockId">
        <Parameters>
            <asp:QueryStringParameter Name="StockId" QueryStringField="StockId" Type="String" />
        </Parameters>
    </data:StockDataSource>
    <br />
</asp:Content>
